import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Register from '@/components/Register'
import RegisterSuccess from '@/components/RegisterSuccess'
import RegisterStep2 from '@/components/RegisterStep2'
import UserCenter from '@/components/UserCenter'
import UserFastRecharge from '@/components/UserFastRecharge'

Vue.use(Router)

export default new Router({
  routes: [
    //关于登录注册
    {
      path: '/login',
      name: 'login',
      component:Login
    },
    {
      path: '/register',
      name: 'register',
      component:Register
    },
    {
      path: '/registersuccess',
      name: 'registersuccess',
      component:RegisterSuccess
    },
    {
      path: '/registerstep2',
      name: 'registerstep2',
      component:RegisterStep2
    },
    //用户中心
    {
      path: '/usercenter',
      name: 'usercenter',
      component:UserCenter
    },
    {
      path: '/userfastrecharge',
      name: 'userfastrecharge',
      component:UserFastRecharge
    }
  ]
})
